//argument0 es igual al mundo

levelrow = 5;
initialx = 195;
stepx = 160;
initialy = 180;
stepy = 160;


yvar = initialy;
xvar = initialx;
mundo = argument0

for(i=1; i <= global.max_levels;i++)
{
  
    var objMenu = instance_create(xvar, yvar, obj_menu_item);
    objMenu.nivel = i;
    objMenu.puntos = global.levellist[mundo,i];
    objMenu.mundo = mundo;
    
    xvar +=   stepx;
    
    if(i mod levelrow == 0) {
        yvar +=   stepy;
        xvar = initialx;
    }
     
}